home *** CD-ROM | disk | FTP | other *** search
- Path: news.nask.org.pl!usenet
- From: piotrpar@blue.maloka.waw.pl (Piotr Parlewicz)
- Newsgroups: comp.lang.c++
- Subject: Re: Borlands Container Classes
- Date: Tue, 26 Mar 1996 21:13:46 GMT
- Organization: Research and Academic Computer Network
- Message-ID: <4j9mj8$rj6@bilbo.nask.org.pl>
- References: <4j6q5c$jl3@mongol.sasknet.sk.ca>
- NNTP-Posting-Host: s111.maloka.waw.pl
- X-Newsreader: Forte Free Agent 1.0.82
-
- psc1@mailhost.sasknet.sk.ca (Dave Goertz) wrote:
-
- >This is probably an easy question but... I want to put one of my own
- >classes in a TIArrayAsVector. Everything goes well until link time when
- >it gives me the error "Illegal structure operation in function
- >TMICVectorImp<MyClass,TStandardAllocator>::Find(const MyClass *) cont".
- >The code it dies on is:
-
- > if( Data[loc] &&
- > *STATIC_CAST(T *,STATIC_CAST(void *,Data[loc])) == *t )
- > return loc;
- [...]
- >Dave.
-
- Does your MyClass include the == operator? If not, then the Find
- function cant use it to compare items in the array against the
- searched item.
-
- Piotr Parlewicz
-
-